<template>
	<view class="container">
		
		<uni-section title="基本用法" type="line" padding>
			<uni-rate v-model="rateValue" @change="onChange" />
		</uni-section>
		</view>
</template>
<script>
	export default {
		components: {},
		data() {
			return {
				rateValue: 0
			}
		},
		// onLoad() {
		// 	// 模拟动态赋值
		// 	setTimeout(() => {
		// 		this.rateValue = 3
		// 	}, 1000)
		// },
		methods: {
			onChange(e) {
				console.log('rate发生改变:' + JSON.stringify(e))
				// console.log(this.rateValue);
			}
		}
	}
</script>

